package com.wdj.creation.simplefactory;

import com.wdj.creation.simplefactory.entity.Product;
import com.wdj.creation.simplefactory.factory.SimpleFactory;

/**
 * @ClassName Client
 * @Description
 * @Author wdj
 * @Date 2020/8/9 12:41
 * @Version 1.0
 **/
public class Client {
    public static void main(String[] args) {
        SimpleFactory factory = new SimpleFactory();
        Product product = factory.getProduct("apple");
        product.toStr();
        product = factory.getProduct("banana");
        product.toStr();
    }
}
